package com.hjjt.cameraplugin

import android.graphics.Bitmap
import java.lang.ref.WeakReference
import java.nio.ByteBuffer


/**
 *
 * @ProjectName:    PluginDemo
 * @Package:        com.hjjt.cameralib
 * @ClassName:      ImageData
 * @Description:
 * @Author:         孙浩
 * @CreateDate:     2022/6/1 10:12
 */
data class
ImageData(val byteData: ByteBuffer, val width: Int, val height: Int) {
    var bitmap: WeakReference<Bitmap>? = null

    fun setBitmap(bmp: Bitmap) {
        bitmap = WeakReference(bmp)
    }
}